

///登录方式
const int loginTypeInit     = -1;
const int loginTypeIdentity = 1;
const int loginTypeSocial   = 2;
const int loginTypeFace     = 3;
const int loginTypeAccount  = 4;
const int loginTypeElectric = 6;
const int loginTypeSuccess  = 100;


const String loginChannel          = "login_channel";
const String loginChannelIdentity  = "Identity";
const String loginChannelSocial    = "Social";
const String loginChannelFace      = "Face";
const String loginChannelElectric  = "Electric";
const String loginChannelAccount   = "Account";

///
/// cardType卡类型
///  1: 身份证
///  2: 社保卡
///  3: 人脸
///  4: 账号密码
///  6: 电子社保卡
///
const int cardTypeInit = -1;
const int cardTypeIdentity = 1;
const int cardTypeSocialCard = 2;
const int cardTypeFaceRecognition = 3;
const int cardTypeAccountPassword = 4;
const int cardTypeMedicalInsurance = 6;

///
/// 登录时后端要的loginModel
/// 1： 账号密码
/// 2： 短信验证码
/// 3： 身份证
/// 5： 社保卡
/// 6： 电子医保
///
const String loginModelAccount = "1";
const String loginModelSms = "2";
const String loginModelIdentity = "3";
const String loginModelSocialCard = "5";
const String loginModelMedicalInsurance = "6";

///
/// 3、预约挂号
/// 4、报告打印
/// 5、便民医保
/// 6、智慧家医
/// 7、个人中心
/// 8、健康评估
/// 9、心理健康
/// 10、健康画像
/// 11、云影像
/// 12、核酸检测点
/// 13、健康档案查询
/// 14、疫情防控
///
/// 101、健康查询
/// 102、一键咨询
/// 103、复诊开方
/// 104、健康体检
///
const String appCode = "appCode";
const String appCode3 = "3";
const String appCode4 = "4";
const String appCode5 = "5";
const String appCode6 = "6";
const String appCode7 = "7";
const String appCode8 = "8";
const String appCode9 = "9";
const String appCode10 = "10";
const String appCode11 = "11";
const String appCode12 = "12";
const String appCode13 = "13";
const String appCode14 = "14";
const String appCode101 = "101";
const String appCode102 = "102";
const String appCode103 = "103";
const String appCode104 = "104";

class Constant {
  static bool debug = true;

  static const String baseUrl = "http://192.168.50.6:8888/api-business/";

  static const int successCode = 0;

  static const int invalidateToken = -1001;

  static const String otherError = "-9999";

  static String token = "";

  ///卡的类型
  static int cardType = cardTypeInit;
  ///卡号
  static String cardNumber = "";
  ///用户姓名
  static String userName = "";
  ///用户生日
  static String birthday = "";
  ///用户性别
  static String userGender = "";
  ///用户年龄
  static String age = "";
  ///社保卡读取到的信息
  static String socialCardKxx = "";
  ///民族
  static String nation = "";
  ///籍贯
  static String nativePlace = "";
  ///头像base64字符串
  static String base64Str = "";
  ///用户id
  static String userId = "";
  ///咨询编号
  static String consultId = "";


}